<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>酒店信息系统</title>
<link type="text/css" rel="stylesheet"  href="__PUBLIC__/css/style.css">
<link type="text/css" rel="stylesheet"  href="__PUBLIC__/css/page.css" />
    <script language="javascript" type="text/javascript" src="__PUBLIC__/js/WdatePicker.js"></script>
<script src="__PUBLIC__/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<SCRIPT language="javascript">
    var isShow = false;
    function show(){
        if(isShow){
            document.getElementById("time").style.display="none";
            isShow = false;
        }else{
            document.getElementById("time").style.display="block";
            isShow = true;
        }
    }
function subsou(){
    var type='{$type}';
    var username = $("#username").val();
    var stime = $("#stime").val();
    var etime = $("#etime").val();
    window.location.href='__APP__/admin/operationlog?username='+username+'&stime='+stime+'&etime='+etime+'&type='+type;
}

</SCRIPT>
</head>
<body>
{include file="public/head"}

</div>
<div class="content_2 clear">

{include file="admin/left"}
<div class="content_3 left" >
  <div class="content_3_wz"><img src="__PUBLIC__/images/dajt.png" />系统管理 &gt; 操作日志</div>
  
  <div class="content_3_fdj"><img src="__PUBLIC__/images/fdj.jpg" /></div>
  <div class="content_3_ss clear">
      <ul>
          <li><span class="ctt_wd left">操作员：</span>
              <input name="text" type="text" class="layui-input" id="username"size="8"/>
          </li>

          <li class="ss_cx"><a href="#"  onClick="subsou()">查询</a></li>
      </ul>
      <div class="content_1234" style=" float:left;padding-left:10px; width:700px; ">
          <div class="tjxx_an"  >
              <div id="time" style="DISPLAY:none;" >
                  <table width="100%" border="0" align="center"  cellpadding="0" bgcolor="#EEF7FF" style="text-align:center; border:1px solid #80BFFF;  margin-bottom:10px;">
                      <tbody>
                      <tr  style="border:none;">
                          <td height="50" align="right">
                              <div class="qishishijian" style=" margin-top:0;">
                                  <p class="qssj_wz">起始时间:</p>
                                  <input name="text22" type="text" class="ss_k left" value="<?php echo $starttime;?>" onClick="WdatePicker()"  id="stime"/>
                                  <p class="qssj_wzz">结束时间:</p>
                                  <input name="text22" type="text" class="ss_k left" value="{$endtime}" onClick="WdatePicker()"  id="etime"/>
                                  <div class="blank"></div>
                              </div>
                          </td>
                      </tr>
                      </tbody>
                  </table>
              </div>
              <ul style="margin-bottom:2px;">
                  <li>
                      <input name="submit" type="submit" value="按时间查看" class="btn_04"  onclick="show()"/>
                  </li>
              </ul>
          </div>
          <div class="blank"></div>
      </div>
  </div>

      <table class="layui-table" lay-skin="line" >
       <thead >
        <tr>
            <!--<td width="31" >选择</td>-->
            <td width="30">编号</td>
            <td width="90">操作</td>
            <td width="227" >详情</td>
            <td width="107" >时间</td>
            <td width="77" >操作员</td>
            <!--<td width="49" >操作</td>-->

        </tr>
        </thead>
        <tbody>
        <?
      if($moviesArr){
      	foreach($moviesArr as $val){
      	 $tmp = addslashes(json_encode($val));

   ?>
        <tr class="ctt_white">
            <!--<td><input  type="checkbox" name="contentbox" id="contentbox"  value="{$val[id]}"></td>-->
            <td>{$val[id]}</td>
            <td>{$val[operate]}</td>
            <td>{$val[instruction]}</td>
            <td>{$val[time]}</td>
            <td>{$val[uname]}</td>
            <!--<td> <a href="#" class="layui-btn layui-btn-sm" onclick='edit("{$tmp}",2)'>查看 </a></td>-->

        </tr>
        <?php
		 }
	  }?>
        </tbody>
    </table>


    <div class="content_1234" >
        <div class="layui-box layui-laypage layui-laypage-default">{$page}</div>
    </div>
 </div>
</div>
</body>
</html>
